package cn.edu.hunau.oop.day02.extend2;

/**
 * @author hb
 * @date 2025-08-05 15:00:42
 */
public class Student extends User {

    private String className;

    public Student(){

    }

    public Student(String id,String name,String className){
        //this表示当前对象.setId从父类继承的setId方法
        //this.setId(id);
        //this.setName(name);
        super(id,name);
        this.className=className;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
